﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace log4net.Kafka.Common
{
    /// <summary>
    /// 
    /// </summary>
    public class LogModel
    {
        public LogModel()
        {
     //       properties = new Dictionary<string, string>();
            http = new HttpContext();
        }
    //    public IDictionary<string, string> properties { get; set; }

        public string system { get; set; }

        public string timestamp { get; set; }

        public string message { get; set; }

        public object data { get; set; }

        public object exception { get; set; }

        public string logger { get; set; }

        public string domain { get; set; }

        public string identity { get; set; }

        public string level { get; set; }

        public string @class { get; set; }

        public string file { get; set; }

        public string line { get; set; }

        public string info { get; set; }

        public string method { get; set; }

        public string fix { get; set; }

        public string user { get; set; }

        public string thread { get; set; }

        public string host { get; set; }

        public HttpContext http { get; set; }
    }

    public class HttpContext
    {
        public HttpContext()
        {
            header = new Dictionary<string, string>();
        }
        public string method { get; set; }
        public string url { get; set; }
        public Dictionary<String, String> header { get; set; }
        public string body { get; set; }
    }

}
